Skip to main content

Calculate Fixed Deposit ROI

GET /fixed-deposit/roi

Description

Calculates the Return on Investment (ROI) for a fixed deposit account. This endpoint requires specific headers and query parameters to perform the calculation.

Headers:

NameTypeDescription
tenantIdstringThe unique identifier for the tenant (required).
countryCodestringThe country code (required).
userIdstringThe unique identifier for the user (required).

Query Parameters:

NameTypeDescription
capitalnumberThe capital amount for the investment (required).
productIdintegerThe product ID for the fixed deposit account (required).

Example Request:

curl -X GET "{{baseURL}}/fixed-deposit/roi" \
-H "Authorization: Bearer [access_token]" \
-H "tenantId: [tenantId]" \
-H "countryCode: [countryCode]" \
-H "userId: [userId]" \
-G \
--data-urlencode "capital=10000" \
--data-urlencode "productId=12345"

Sample Response: 200

{
"status": true,
"statusCode": 0,
"message": "string",
"data": {},
"errors": [
{
"message": "string",
"data": {},
"descriptiveMessage": "string"
}
]
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /fixed-deposit/roi \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!